package com.stu.service.impl;

import com.stu.mapper.UserMapper;
import com.stu.pojo.User;
import com.stu.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserByUsername(String username) {
        return userMapper.selectUserByUName(username);
    }
}
